package com.ai.microservice01;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * exclude= {DataSourceAutoConfiguration.class} //忽略配置数据库参数
 */
@SpringBootApplication(scanBasePackages = "com.ai",exclude= {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@ServletComponentScan
@EnableFeignClients(basePackages = "com.ai")
public class MicroService01Application {
    public static void main(String[] args) {
        SpringApplication.run(MicroService01Application.class, args);
    }

}
